package com.brspace.qualitycontrol.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.brspace.qualitycontrol.entity.User;
import com.brspace.qualitycontrol.repository.UserRepository;
import com.brspace.qualitycontrol.utils.R;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-04-08
 */
public interface UserService extends IService<User> {

    User findByName(String username);

    void saveInfo(User user);

    User login(User user);

    IPage<User> selectPage(Page<User> pageParam, User user);

    UserRepository getRepository();

    R findAll(int page, int limit, String id);
}
